home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1348.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.8 KB  |  117 lines

  1. 86
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. InstallFont 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baInstallFont installs a TrueType or Bitmap font.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baInstallFont( FontFile , FontName )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. FontFile is the .ttf or .fon file to install. 
  36. --- RECORDSEPARATOR ---
  37. FontName is the name of the font.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Integer. 
  46. --- RECORDSEPARATOR ---
  47. Returns 0 if font installs OK. Otherwise returns one of: 
  48. --- RECORDSEPARATOR ---
  49. --- RECORDSEPARATOR ---
  50. A font file with that name already exists. 
  51. --- RECORDSEPARATOR ---
  52. --- RECORDSEPARATOR ---
  53. The font file was not found. 
  54. --- RECORDSEPARATOR ---
  55. --- RECORDSEPARATOR ---
  56. Error copying font file. 
  57. --- RECORDSEPARATOR ---
  58. --- RECORDSEPARATOR ---
  59. Windows couldn't install the font. 
  60. --- RECORDSEPARATOR ---
  61. --- RECORDSEPARATOR ---
  62. The font file is an invalid name.
  63. --- RECORDSEPARATOR ---
  64.  
  65. --- RECORDSEPARATOR ---
  66. Examples:
  67. --- RECORDSEPARATOR ---
  68.  
  69. --- RECORDSEPARATOR ---
  70. Director: 
  71. --- RECORDSEPARATOR ---
  72. set OK = baInstallFont( the moviePath & "arialb.ttf" , "Arial Bold"  ) 
  73. --- RECORDSEPARATOR ---
  74. Authorware: 
  75. --- RECORDSEPARATOR ---
  76. OK := baInstallFont( FileLocation ^ "arialb.ttf" , "Arial Bold"  )
  77. --- RECORDSEPARATOR ---
  78.  
  79. --- RECORDSEPARATOR ---
  80. Notes:
  81. --- RECORDSEPARATOR ---
  82.  
  83. --- RECORDSEPARATOR ---
  84. Most fonts are copyrighted material. You should not install a font unless you are 
  85. --- RECORDSEPARATOR ---
  86. legally allowed to do so. 
  87. --- RECORDSEPARATOR ---
  88. The name of the font should be taken from the Fonts Control Panel. The name that 
  89. --- RECORDSEPARATOR ---
  90. Windows identifies the font to applications is taken from information inside the font 
  91. --- RECORDSEPARATOR ---
  92. file, not the name you give it. 
  93. --- RECORDSEPARATOR ---
  94. You should use the FontInstalled command to check whether or not a particular 
  95. --- RECORDSEPARATOR ---
  96. font is already installed before you try to install a new copy. 
  97. --- RECORDSEPARATOR ---
  98. Director does not rebuild it's font list after it has been started. This means that the 
  99. --- RECORDSEPARATOR ---
  100. font will not be available to the projector that installed it unless it is restarted. All 
  101. --- RECORDSEPARATOR ---
  102. versions of Authorware should be able to use the font immediately. There is usually 
  103. --- RECORDSEPARATOR ---
  104. no need to restart Windows.
  105. --- RECORDSEPARATOR ---
  106.  
  107. --- RECORDSEPARATOR ---
  108. See also:
  109. --- RECORDSEPARATOR ---
  110.  
  111. --- RECORDSEPARATOR ---
  112. baFontInstalled